﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assets.Scripts.Handlers;
using ExitGames.Client.Photon;
using WorldOfSuperpowers_COMMON;
using WorldOfSuperpowers_COMMON.DataModel;

namespace Assets.Scripts.NetFrame.Handlers
{
    public class RegistHandler:BaseHandler
    {
        public override void Response(OperationResponse operationResponse)
        {
            switch (operationResponse.ReturnCode)
            {
                case (byte)ReturnCode.Fail:
                    string rezultStr = operationResponse.DebugMessage;
                    TipsController._instance.ShowNewTipContent("注册失败:"+rezultStr);
                    //print(rezultStr);
                    break;
                case (byte)ReturnCode.Success:
                    TipsController._instance.ShowNewTipContent("注册成功");
                    break;
            }
        }
    }
}
